<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>蜗牛楼宇系统</title>
    <script type="text/javascript" src="../vue.js"></script>
    <script type="text/javascript" src="../axios-0.18.0.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <!-- 引入组件库 -->
    <script src="../plugins/elementui/index.js"></script>
</head>

<body>

<div id="app">

    <el-form :model="ruleForm" status-icon  ref="ruleForm" label-width="100px" class="demo-ruleForm">
        <el-form-item label="用户名" prop="pass">
            <el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="密码" prop="checkPass">
            <el-input type="password" v-model="ruleForm.checkPass" autocomplete="off"></el-input>
        </el-form-item>

        <el-form-item>
            <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
            <el-button @click="resetForm('ruleForm')">重置</el-button>
        </el-form-item>
    </el-form>
</div>

<script type="text/javascript">
    var v = new Vue({
        el:"#app",
        data:{
            ruleForm: {
                pass: '',
                checkPass: ''
            },
        },
        methods:{
            submitForm(formName) {
            },
            resetForm(formName) {
                this.$refs[formName].resetFields();
            }
        }
    });

</script>
</body>
</html>